.PHONY:all
all: myserver client

myserver:server.cc
	g++ -o $@ $^ -std=c++11 -lpthread -ljsoncpp

client:client.cc
	g++ -o $@ $^ -std=c++11 -lpthread -ljsoncpp

test:test.cc
	g++ -o $@ $^ -std=c++11 -lpthread -ljsoncpp

.PHONY:clean
clean:
	rm myserver client